D:\git\skunkworks\herald-for-cpp\herald\include\herald\datatype\placename_location_reference.h
Line | Count | Source |
1 | | // Copyright 2020-2021 Herald Project Contributors |
2 | | // SPDX-License-Identifier: Apache-2.0 |
3 | | // |
4 | | |
5 | | #ifndef HERALD_PLACENAME_LOCATION_REFERENCE_H |
6 | | #define HERALD_PLACENAME_LOCATION_REFERENCE_H |
7 | | |
8 | | #include "location_reference.h" |
9 | | |
10 | | namespace herald { |
11 | | namespace datatype { |
12 | | |
13 | | struct PlacenameLocationReference : public LocationReference { |
14 | 1 | PlacenameLocationReference(std::string n) : LocationReference(), name(n) { }; |
15 | 1 | ~PlacenameLocationReference() = default; |
16 | | |
17 | | std::string name; |
18 | | |
19 | 1 | std::string description() { |
20 | 1 | return "PLACE(name=" + name + ")"; |
21 | 1 | } |
22 | | }; |
23 | | |
24 | | |
25 | | } // end namespace |
26 | | } // end namespace |
27 | | |
28 | | #endif |